import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
import React from 'react';

const Footer: React.FC = () => {
  const defaultMessage = "小白出品";
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      style={{
        background: 'none',
      }}
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'Ant Design Pro',
          title: 'Ant Design 赞助  ',
          href: 'https://pro.ant.design',
          blankTarget: true,
        },
        {
          key: 'Ant Design',
          title: 'My Leetcode  ',
          href: 'https://leetcode.cn/u/ran-mo-xiao-bai/',
          blankTarget: true,
        },
        {
          key: 'github',
          title: <><GithubOutlined/> 小白 Github</>,
          href: 'https://github.com/ranmocc',
          blankTarget: true,
        },
      ]}
    />
  );
};

export default Footer;
